<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:af="http://myfaces.apache.org/trinidad"
	xmlns:afh="http://myfaces.apache.org/trinidad/html"
    xmlns:ppc="http://www.sungard.de/carnot/web/portal-plugin/common">

	<af:column id="#{descriptor.id}Col" rendered="#{null != descriptor}"
        styleClass="#{colStyleClassPrefix}#{descriptor.id}Col">
		<f:facet name="header">

			<ui:include src="column-header.xhtml">
				<ui:param name="columnHeading" value="#{descriptor}" />
                <ui:param name="columnHeadingConverter" value="modelElementLabelProvider" />

				<ui:param name="columnFieldModel" value="#{descriptorFilter}" />
				<ui:param name="columnFieldId" value="#{descriptorFilterFieldId}" />
            
                <ui:param name="filterEnabled" value="#{filterEnabled}" />
                
                <ui:param name="sortEnabled" value="#{sortEnabled}" />
				<ui:param name="sortModel" value="#{sortModel}" />
				<ui:param name="sortProperty" value="#{sortProperty}" />
			</ui:include>

		</f:facet>

		<af:outputText value="#{row}" rendered="#{not (descriptorFilter.type eq 'Priority')}">
            <ppc:descriptorConverter dataPath="#{descriptor}"/>
        </af:outputText>
        
        <af:outputText value="#{row.descriptorValues[descriptor.id]}" rendered="#{descriptorFilter.type eq 'Priority'}">
            <f:converter converterId="priorityConverter"/>
        </af:outputText>

	</af:column>

</ui:composition>
